Skip to content

Conversation

echo-vladimir
Copy link

useEffect does not accept asynchronous functions directly. Moved the try-catch block inside the async function in useEffect to properly handle errors during the data fetch.

Moved the try-catch block inside the async function in useEffect to properly handle errors during the data fetch.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant